package Delegare;

import java.io.*;

public class Depozit {
	Lista l=new Lista();
	public void adauga() throws IOException {
		l.adauga();
	}
	public void suprima() throws NumberFormatException, IOException {
		l.suprima();
	}
	public void afisare() {
		l.afisare();
	}
	public static void main(String arg[]) throws NumberFormatException, IOException {
		int op;
		Depozit dep=new Depozit();
		BufferedReader tastatura=new BufferedReader(new InputStreamReader(System.in));
		do {
		System.out.println("MENIU DEPOZIT COMERCIAL DE MARFURI");
		System.out.println("1.Adauga");
		System.out.println("2.Suprima");
		System.out.println("3.Afisare inventar");
		System.out.println("4.Iesire");
		System.out.print("Introduceti optiunea:");
		op=Integer.parseInt(tastatura.readLine()); 
		switch(op){
		case 1:
			dep.adauga();
			break;
		case 2:
			dep.suprima();
			break;
		case 3:
			dep.afisare();
			break;
		case 4: System.out.println("La revedere!");
			break;
		default:System.out.println("Optiune eronata!");
				break;
		}
	}while(op>=5);
}
	
}
